<!--<?php
if ($_viewer->link == 'hire') {
	$action = $_viewer->baseUrl . 'a=dourgent&link=hire';
	$subject = $_viewer->info['subject'];
	$type = '出租';
} else {
	$action = $_viewer->baseUrl . 'a=dourgent';
	$subject = $_viewer->info['subject'];
	$type = '出售';
}
print <<<EOT
-->
<div onmousedown="read.move(event);" style="cursor: move;" class="popTop"><span onclick="closep();" class="adel cp">关闭</span>加急房源</div>
	<form action="$action" method="post" name="FORM">
	<input type="hidden" name="houseid" value="{$_viewer->houseid}"/>
<!--
EOT;
if ($_viewer->isHouseManager) {
print <<<EOT
-->
    <table style="width:480px">
        <tr class="tr3">
            <td colspan="2" class="popTip">1.房源加急后将在房源列表和房源详情页显示加急图标，浏览量大，效果明显。<br />2.管理员操作不扣除积分。</td>
        </tr>
    </table>
	<table style="width:480px">
		<tr class="tr3"><td width="80">操作类型:</td><td class="td2">
			<label><input checked="checked" onclick="doAndCacle('urgent',1);" name="isurgent" value="1" type="radio" />加急</label> &nbsp;&nbsp;
	 		<label><input name="isurgent" onclick="doAndCacle('urgent',0);" value="0" type="radio" />取消加急</label></td>
	 	</tr>
<!--
EOT;
} else {
print <<<EOT
-->
    <table style="width:480px">
        <tr class="tr3">
            <td colspan="2" class="popTip">房源加急后将在房源列表和房源详情页显示加急图标，浏览量大，效果明显。</td>
        </tr>
    </table>
	<table style="width:480px">
<!--
EOT;
}
print <<<EOT
-->	
		<tr class="tr3"><td>房源:</td><td>$subject</td></tr>
<!--
EOT;
if (!empty($_viewer->expiredTime[$_viewer->houseid][expiredtime])) {
$tmpTime = $_viewer->expiredTime[$_viewer->houseid][expiredtime];
$endTime = '<span class="s3">' . date('Y', $tmpTime) . '</span>年<span class="s3">' . date('m', $tmpTime) . '</span>月<span class="s3">' . date('d', $tmpTime) . '</span>日';
print <<<EOT
-->
		<tr class="tr3"><td>已加急至:</td><td>$endTime</td></tr>
<!--
EOT;
}
print <<<EOT
-->
		<tr class="tr3"><td>房源类型:</td><td>$type</td></tr>
		<tr class="tr3" id="pricetr" style="display:"><td width="80">价格:</td><td>{$_viewer->house_rapidprice} {$_viewer->house_rapidcredit}/天</td></tr>
		<tr class="tr3" id="daytr" style="display:"><td>加急天数:</td><td>
		<select name="days" onchange="document.getElementById('totalprice').innerHTML = {$_viewer->house_rapidprice} * this.value">
			<option selected="selected" value="1">1</option>
			<option value="2">2</option>
			<option value="3">3</option>
			<option value="4">4</option>
			<option value="5">5</option>
			<option value="6">6</option>
			<option value="7">7</option>
			<option value="8">8</option>
			<option value="9">9</option>
			<option value="10">10</option>
		</select>
		天</td></tr>
		<tr class="tr3" id="totaltr" style="display:"><td>总价:</td><td><span id="totalprice">{$_viewer->house_rapidprice}</span> {$_viewer->house_rapidcredit}</td></tr>
		<tr class="tr3" id="balancetr" style="display:"><td>余额:</td><td>{$_viewer->myCreditNum} {$_viewer->house_rapidcredit}</td></tr>
<!--
EOT;
if ($_viewer->isHouseManager) {
print <<<EOT
-->
		<tr class="tr3" id="cretr" style="display:none"><td>退还积分</td><td class="td2"><label><input checked="checked" name="isback" value="1" type="radio" />启用</label>                <label><input name="isback" vlaue="0" type="radio" />关闭</label></td></tr>
		<tr class="tr3" id="msgtr" style="display:none"><td>发送消息</td><td class="td2"><label><input checked="checked" name="ismsg" value="1" type="radio" />启用</label>                <label><input name="ismsg" vlaue="0" type="radio" />关闭</label></td></tr>
<!--
EOT;
}
print <<<EOT
-->
	</table>
	<div class="popBottom">
	<span class="btn2"><span><button type="button" name="ajaxsubmit" id="subtr" onclick="ajax.submit(document.FORM,ajax.guide);">确认购买</button></span></span>
	</form>
</div>
<!--
EOT;
?>-->